File: Autopilot.h

    1   /*
    2    * File: Autopilot.h
    3    *
    4    * Code generated for Simulink model 'Autopilot'.
    5    *
    6    * Model version                  : 1.152
    7    * Simulink Coder version         : 8.5 (R2013b) 08-Aug-2013
    8    * C/C++ source code generated on : Mon Feb 03 08:38:36 2014
    9    *
   10    * Target selection: ert.tlc
   11    * Embedded hardware selection: 32-bit Embedded Processor
   12    * Code generation objectives: Unspecified
   13    * Validation result: Not run
   14    */
   15   
   16   #ifndef RTW_HEADER_Autopilot_h_
   17   #define RTW_HEADER_Autopilot_h_
   18   #ifndef Autopilot_COMMON_INCLUDES_
   19   # define Autopilot_COMMON_INCLUDES_
   20   #include <string.h>
   21   #include "rtwtypes.h"
   22   #include "model_reference_types.h"
   23   #endif                                 /* Autopilot_COMMON_INCLUDES_ */
   24   
   25   #include "Autopilot_types.h"
   26   
   27   /* Child system includes */
   28   #include "yaw_damper.h"
   29   #include "roll_ap.h"
   30   #include "pitch_ap.h"
   31   
   32   /* Block states (auto storage) for model 'Autopilot' */
   33   typedef struct {
   34     rtMdlrefDWork_pitch_ap Pitch_Autopilot_DWORK1;/* '<Root>/Pitch_Autopilot' (DWork 1)  */
   35     rtMdlrefDWork_roll_ap Roll_Autopilot_DWORK1;/* '<Root>/Roll_Autopilot' (DWork 1)  */
   36     rtMdlrefDWork_yaw_damper Yaw_Damper_DWORK1;/* '<Root>/Yaw_Damper' (DWork 1)  */
   37   } rtDW_Autopilot;
   38   
   39   typedef struct {
   40     rtDW_Autopilot rtdw;
   41   } rtMdlrefDWork_Autopilot;
   42   
   43   /* Model reference registration function */
   44   extern void Autopilot_initialize(rtDW_Autopilot *localDW);
   45   extern void Autopilot_Start(rtDW_Autopilot *localDW);
   46   extern void Autopilot(const slBus1 *rtu_AirData, const slBus2 *rtu_Inertial,
   47                         const boolean_T *rtu_APEng, const boolean_T *rtu_HDGMode,
   48                         const boolean_T *rtu_ALTMode, const real_T *rtu_HDGRef,
   49                         const real_T *rtu_TurnKnob, const real_T *rtu_ALTRef,
   50                         const real_T *rtu_PitchWheel, real_T *rty_AileronCmd,
   51                         real_T *rty_ElevatorCmd, real_T *rty_RudderCmd,
   52                         rtDW_Autopilot *localDW);
   53   
   54   /*-
   55    * The generated code includes comments that allow you to trace directly
   56    * back to the appropriate location in the model.  The basic format
   57    * is <system>/block_name, where system is the system number (uniquely
   58    * assigned by Simulink) and block_name is the name of the block.
   59    *
   60    * Use the MATLAB hilite_system command to trace the generated code back
   61    * to the model.  For example,
   62    *
   63    * hilite_system('<S3>')    - opens system 3
   64    * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
   65    *
   66    * Here is the system hierarchy for this model
   67    *
   68    * '<Root>' : 'Autopilot'
   69    * '<S1>'   : 'Autopilot/Model Info'
   70    */
   71   
   72   /*-
   73    * Requirements for '<Root>': Autopilot
   74    */
   75   #endif                                 /* RTW_HEADER_Autopilot_h_ */
   76   
   77   /*
   78    * File trailer for generated code.
   79    *
   80    * [EOF]
   81    */
   82